home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960715-19961006 / 000183_news@columbia.edu _Tue Aug 13 16:26:01 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id QAA00366 for <kermit.misc@watsun.cc.columbia.edu>; Tue, 13 Aug 1996 16:26:01 -0400 (EDT)
  3. Received: (from news@localhost) by newsmaster.cc.columbia.edu (8.7.5/8.7.3) id QAA14034 for kermit.misc@watsun; Tue, 13 Aug 1996 16:26:00 -0400 (EDT)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: Logging to printer
  8. Date: 13 Aug 1996 20:25:40 GMT
  9. Organization: Columbia University
  10. Lines: 32
  11. Message-ID: <4uqoc4$nev@apakabar.cc.columbia.edu>
  12. References: <4uqhs2$a9l@twizzler.callamer.com>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14. Keywords: Solaris 2.X, kermit, printing, logging
  15.  
  16. In article <4uqhs2$a9l@twizzler.callamer.com>,
  17. Shaug Evans <shaug@callamer.com> wrote:
  18. : I'm using kermit to open a terminal session from a serial port on a PC
  19. : running Solaris 2.5.1.  I've already got kermit logging sessions to a file,
  20. : but I don't know how to simultaneously log them to the printer.  The
  21. : version of kermit is this:  "C-Kermit 5A(190), 4 Oct 94, for Solaris 2.x".
  22. : Any suggestions are appreciated.
  23. UNIX doesn't usually have printers like DOS does -- devices that you can
  24. open as if they were files and write stuff to them.  A UNIX printer is
  25. usually a program, lp or lpr, that you point at files, or pipe files into.
  26. So normally you would print your session log after the fact.  If you need to
  27. have a sessiog log printing in "real time" you might be able to do this if
  28. you have a printer plugged directly into a serial or parallel port on your
  29. PC, and then you can log your session to that device, something like:
  30.  
  31.   log session /dev/prn
  32.  
  33. I don't know if this will work; I have no way to test it myself.  Could 
  34. somebody with a PC-based UNIX and local printer could report back?
  35.  
  36. Perhaps a more straightforward solution would involve running a separate
  37. process to copy the file to the printer in real time, perhaps something
  38. like this:
  39.  
  40.   tail -f session.log > /dev/prn &
  41.  
  42. or:
  43.  
  44.   tail -f session.log | lpr &
  45.  
  46. - Frank